import { createBrowserRouter } from 'react-router-dom'
import Layout from '../layout'
import Login from '../pages/Login'
import Register from '../pages/Register'
import UpdatePassword from '../pages/UpdatePassword'
import UpdateInfo from '../pages/UpdateInfo'

const router = createBrowserRouter([
  {
    path: `/`,
    element: <Layout />,
    children: [
        {
            path: 'update_info',
            // index: true,
            element: <UpdateInfo />
        },
    ]
  },
  {
    path: 'login',
    element: <Login />,
  },
  {
    path: 'register',
    element: <Register />,
  },
  {
    path: 'update_password',
    element: <UpdatePassword />,
  },
])

export default router
